package com.itheima.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-service",fallback = UserClientDemotion.class)
public interface UserClient {

    @GetMapping("user/test/{id}")
    String getUser(@PathVariable("id")Integer id);
}
